function createCounter(n: number): () => number {
  let _n = n;
  return function() {
      let now = _n;
      _n += 1;
      return now;
  }
}


/** 
* const counter = createCounter(10)
* counter() // 10
* counter() // 11
* counter() // 12
*/
